home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Framework / Includes / FloatWindow.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  2.5 KB  |  62 lines  |  [TEXT/MPS ]

  1. // FloatWindow.h
  2. // Copyright © 1985-96 by Apple Computer, Inc. All rights reserved. 
  3.  
  4. //    MacApp™ resource type definitions for float window.
  5. //    See DemoDialogs.r for an example of how to use this file.
  6.  
  7. #ifndef __FLOATWINDOW__
  8. #define __FLOATWINDOW__
  9.  
  10. //••• NOTE !!!
  11. //••• Do we want to keep this qUseOldFloatingWDEF sop? If so then we should include
  12. //••• it in the build system else TOSS IT and toss the old style windoids.
  13. #ifndef qUseOldFloatingWDEF
  14. #define qUseOldFloatingWDEF FALSE
  15. #endif
  16.  
  17. //
  18. // Used #defines here. This file is included by C++ and Rez
  19. //
  20. #if !qUseOldFloatingWDEF
  21.  
  22. // —————————————————————————————————————————————————————————————————————————————
  23. //
  24. //    New Apple System 7.5 windoid style variations    
  25. //
  26. // —————————————————————————————————————————————————————————————————————————————
  27. #define kSystem75_kWindoidWDEF    1984            // the default windoid WDEF proc ID
  28. #define kSystem75_toggleTBar    1                // Bit 0 tells us whether to hilite/unhilite the title bar.
  29. #define kSystem75_hasGrow        2                // Bit 1 is the grow bit.
  30. #define kSystem75_hasZoom        4                // Bit 2 is the zoom bit.
  31. #define kSystem75_vertTBar        8                // Bit 3 set if titlebar is vertical.
  32.  
  33. // —————————————————————————————————————————————————————————————————————————————
  34. //
  35. //    New Apple System 7.5 windoid used in pre system 7.5    for compatibility
  36. //
  37. // —————————————————————————————————————————————————————————————————————————————
  38. #define kSystem75AndLess_kWindoidWDEF    2048    // windoid WDEF proc ID for rsrc ID 128. We will
  39.                                                 // use the WDEF specified by this ID if we are not
  40.                                                 // running on System 7.5 or better. If we are, however,
  41.                                                 // we will change the ID dynamically in the window
  42.                                                 // initialization sequence. This ensures that we use
  43.                                                 // the WDEF stored in your program on pre System 7.5
  44.                                                 // but, use the WDEF stored in the system thereafter.
  45.  
  46. #else
  47.  
  48. // —————————————————————————————————————————————————————————————————————————————
  49. //
  50. //    Old MacApp/HyperCard windoid style variations    
  51. //
  52. // —————————————————————————————————————————————————————————————————————————————
  53. #define kWindoidWDEF            48                // the default windoid WDEF proc ID
  54. #define kWindoidHilite             1                // add this to kWindoidWDEF if the title bar can be unhilited
  55. #define kWindoidTallTitleBar     2                // add this to kWindoidWDEF if the title bar has a title
  56. #define kWindoidNotResizable     4                // add this to kWindoidWDEF if the windoid is NOT resizable
  57. #define kWindoidZoomable         8                // add this to kWindoidWDEF if the windoid is zoomable
  58.  
  59. #endif
  60.  
  61. #endif
  62.